package oop9;

/**
 * @author oldliu
 * @since 1.0
 */
//教室
public class ClassRoom {
    private String no;//编号
    private int area;//教室平方数
    private int desks;//桌椅数目

    public ClassRoom(String no, int area, int desks) {
        this.no = no;
        this.area = area;
        this.desks = desks;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public int getArea() {
        return area;
    }

    public void setArea(int area) {
        this.area = area;
    }

    public int getDesks() {
        return desks;
    }

    public void setDesks(int desks) {
        this.desks = desks;
    }

    @Override
    public String toString() {
        return "教室{" +
                "no='" + no + '\'' +
                ", area=" + area +
                ", desks=" + desks +
                '}';
    }
}
